<template>
	<view class="content">
		<image @tap="getData" class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
	</view>
</template>

<script setup>
	import request from '/utils/request.js'
	import { onReady,onLoad,onShow } from '@dcloudio/uni-app'
	
	onReady(()=>{
		console.log('onReady')
	})
	onShow(()=>{
		console.log('onShow')
	})
	onLoad(()=>{
		
		console.log('onLoad')
	})
	let title = '123dddd'
	const getData = ()=>{
		//https://timor.tech/api/holiday/year/2020/
		request.get(`https://timor.tech/api/holiday/year/2024/`,{time:new Date()},true).then(e=>{
			console.log(e)
		}).catch(err=>{
			console.log(err)
		})
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.text-area {
			display: flex;
			justify-content: center;
			.title {
				font-size: 36rpx;
				color: red;
			}
		}
		
		
	}

	

	
</style>
